home *** CD-ROM | disk | FTP | other *** search
/ Softdisk for Windows 38 / Softdisk for Windows 38.iso / oilpro / OILPRO.EXE / OILPRO.DXR / 00063.ls < prev    next >
Encoding:
Text File  |  1997-08-20  |  910 b   |  36 lines

  1. on exitFrame
  2.   global LIGHTCNT, UPG, LOADTHERE, BONUSROUND
  3.   set LIGHTCNT to LIGHTCNT + 1
  4.   puppetSprite(4, 1)
  5.   if LIGHTCNT >= 4 then
  6.     set LIGHTCNT to 1
  7.   end if
  8.   if LIGHTCNT = 1 then
  9.     set the castNum of sprite 4 to cast "LIGHT1"
  10.   end if
  11.   if LIGHTCNT = 2 then
  12.     set the castNum of sprite 4 to cast "LIGHT2"
  13.   end if
  14.   if LIGHTCNT = 3 then
  15.     set the castNum of sprite 4 to cast "LIGHT3"
  16.   end if
  17.   updateStage()
  18.   if rollOver(48) then
  19.     set the castNum of sprite 48 to cast "RETURNBUTTON1"
  20.   else
  21.     set the castNum of sprite 48 to cast "RETURNBUTTON0"
  22.   end if
  23.   if rollOver(42) then
  24.     set the castNum of sprite 42 to cast "SONDONBUT2"
  25.   else
  26.     set the castNum of sprite 42 to cast "SONDONBUT1"
  27.   end if
  28.   if rollOver(43) then
  29.     set the castNum of sprite 43 to cast "SONDOFFBUT2"
  30.   else
  31.     set the castNum of sprite 43 to cast "SONDOFFBUT1"
  32.   end if
  33.   updateStage()
  34.   go(the frame)
  35. end
  36.